package com.esl.model.admin;

import java.io.Serializable;
import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
@Entity
@Table(name = "T_Task")
@Cache(usage=CacheConcurrencyStrategy.READ_ONLY)
public class Task implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 4061358942188304044L;
	
	private int t_id;
	private String t_name;
	private String t_desc;
	private Date t_start;
	private Date t_end;
	private String t_state;
	private String t_temp;
	public Task()
	{
		super();
	}
	public Task(String name ,String desc ,Date start,Date end,String state ,String temp)
	{
		
		this.t_name=name;
		this.t_desc=desc;
		this.t_start=start;
		this.t_end=end;
		this.t_state=state;
		this.t_temp=temp;
	}
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "t_id", unique = true, nullable = false)
	public int getT_id() {
		return t_id;
	}
	public void setT_id(int t_id) {
		this.t_id = t_id;
	}
	
	@Column(name = "t_name")
	public String getT_name() {
		return t_name;
	}
	public void setT_name(String t_name) {
		this.t_name = t_name;
	}
	
	@Column(name = "t_desc")
	public String getT_desc() {
		return t_desc;
	}
	public void setT_desc(String t_desc) {
		this.t_desc = t_desc;
	}
	
	@Column(name = "t_start")
	public Date getT_start() {
		return t_start;
	}
	public void setT_start(Date t_start) {
		this.t_start = t_start;
	}
	
	@Column(name = "t_end")
	public Date getT_end() {
		return t_end;
	}
	public void setT_end(Date t_end) {
		this.t_end = t_end;
	}
	
	@Column(name = "t_state")
	public String getT_state() {
		return t_state;
	}
	public void setT_state(String t_state) {
		this.t_state = t_state;
	}
	
	@Column(name = "t_temp")
	public String getT_temp() {
		return t_temp;
	}
	public void setT_temp(String t_temp) {
		this.t_temp = t_temp;
	}
	

}
